net/netip.AddrPort.ip (field)
17 uses
net/netip (current package)
netip.go#L1026: ip Addr
netip.go#L1032: func AddrPortFrom(ip Addr, port uint16) AddrPort { return AddrPort{ip: ip, port: port} }
netip.go#L1035: func (p AddrPort) Addr() Addr { return p.ip }
netip.go#L1084: ipp.ip, err = ParseAddr(ip)
netip.go#L1088: if v6 && ipp.ip.Is4() {
netip.go#L1090: } else if !v6 && ipp.ip.Is6() {
netip.go#L1108: func (p AddrPort) IsValid() bool { return p.ip.IsValid() }
netip.go#L1111: switch p.ip.z {
netip.go#L1115: a := p.ip.As4()
netip.go#L1125: return joinHostPort(p.ip.String(), itoa.Itoa(int(p.port)))
netip.go#L1142: switch p.ip.z {
netip.go#L1146: b = p.ip.appendTo4(b)
netip.go#L1148: if p.ip.Is4In6() {
netip.go#L1150: b = p.ip.Unmap().appendTo4(b)
netip.go#L1151: if z := p.ip.Zone(); z != "" {
netip.go#L1157: b = p.ip.appendTo6(b)
netip.go#L1171: switch p.ip.z {
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |